package com.conversationboard.logger;

public class LogMessage {

    private long queryTimeInMilliseconds;
    private boolean gotFromCache;
    private Function function;


    public LogMessage(Function function) {
        this.setFunction(function);
    }


    public LogMessage(Function function, boolean gotFromCache, long queryTimeInMilliseconds) {
        this.setFunction(function);
        this.setGotFromCache(gotFromCache);
        this.setQueryTimeInMilliseconds(queryTimeInMilliseconds);
    }


    public Function getFunction() {
        return function;
    }


    public void setFunction(Function function) {
        this.function = function;
    }


    public boolean isGotFromCache() {
        return gotFromCache;
    }


    public void setGotFromCache(boolean gotFromLocalCache) {
        this.gotFromCache = gotFromLocalCache;
    }


    public long getQueryTimeInMilliseconds() {
        return queryTimeInMilliseconds;
    }


    public void setQueryTimeInMilliseconds(long queryTimeInMilliseconds) {
        this.queryTimeInMilliseconds = queryTimeInMilliseconds;
    }

}
